package com.xiaren;

import com.xiaren.config.SocketServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableScheduling
@Slf4j
@EnableTransactionManagement
@SpringBootApplication // same as @Configuration @EnableAutoConfiguration @ComponentScan
public class Application implements CommandLineRunner {






    public static void main(String[] args) throws Exception {
        SpringApplication.run(Application.class, args);



    }


    @Override
    public void run(String... args) throws Exception {
        log.info(">>>>>>>>>>>>>>> 服务启动执行，执行加载数据等操作  <<<<<<<<<<<<<");

    }


}